package com.crm.service.impl;

import com.crm.dao.DataDicDao;
import com.crm.dao.ProductDao;
import com.crm.entity.DataDic;
import com.crm.entity.Product;
import com.crm.service.DataDicService;
import com.crm.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 数据字典Service实现类
 *
 * @author Administrator
 */
@Service("dataDicService")
public class DataDicServiceImpl implements DataDicService {

    @Resource
    private DataDicDao dataDicDao;

    @Override
    public List<DataDic> find(Map<String, Object> map) {
        return dataDicDao.find(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return dataDicDao.getTotal(map);
    }

    @Override
    public List<DataDic> findAllDataDicName() {
        return dataDicDao.findAllDataDicName();
    }

    @Override
    public Integer add(DataDic dataDic) {
        return dataDicDao.add(dataDic);
    }

    @Override
    public Integer update(DataDic dataDic) {
        return dataDicDao.update(dataDic);
    }

    @Override
    public Integer delete(Integer id) {
        return dataDicDao.delete(id);
    }

}